package com.itlzh.mall.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itlzh.mall.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

//@Mapper
public interface IUserInfoDao extends BaseMapper<UserInfo> {

    UserInfo selectById(long id);

    int insert(UserInfo userInfo);

    void update(UserInfo userInfo);

    void deleteById(long id);

    void deleteBatch(long[] ids);

    void updateById(@Param("entity") UserInfo userInfo,@Param("id") long id);

}
